package com.yuanian.timingwheel.context;

import com.yuanian.timingwheel.model.timingwheel.bucket.BucketQueue;
import com.yuanian.timingwheel.model.timingwheel.DayTimingWheel;
import com.yuanian.timingwheel.statistics.LivingServer;

import java.util.concurrent.atomic.AtomicLong;

public class ExecutionContext {

    private static final ExecutionContext ctx = new ExecutionContext();
    private ExecutionContext() {

    }
    protected DayTimingWheel dayTimingWheel;

    protected LivingServer livingServer;

    public static ExecutionContext getInstance() {
        return ctx;
    }

    public DayTimingWheel getDayTimingWheel() {
        return dayTimingWheel;
    }

    public void setDayTimingWheel(DayTimingWheel dayTimingWheel) {
        this.dayTimingWheel = dayTimingWheel;
    }

    public LivingServer getLivingServer() {
        return livingServer;
    }

    public void setLivingServer(LivingServer livingServer) {
        this.livingServer = livingServer;
    }

}
